import request from '@/utils/request'

// 查询引入考生列表
export function listExaminee(query) {
  return request({
    url: '/exam/examinee/list',
    method: 'get',
    params: query
  })
}

// 查询引入考生详细
export function getExaminee(id) {
  return request({
    url: '/exam/examinee/' + id,
    method: 'get'
  })
}

// 新增引入考生
export function addExaminee(data) {
  return request({
    url: '/exam/examinee',
    method: 'post',
    data: data
  })
}

// 新增临时引入考生
export function addExamineeTemporary(data) {
  return request({
    url: '/exam/session/temporaryAddStu',
    method: 'post',
    data: data
  })
}

// 修改引入考生
export function updateExaminee(data) {
  return request({
    url: '/exam/examinee/update',
    method: 'post',
    data: data
  })
}

// 删除引入考生
export function delExaminee(id) {
  return request({
    url: '/exam/examinee/delete/' + id,
    method: 'post'
  })
}
// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/exam/examinee/exportTemplate',
    method: 'get'
  })
}

// 导出引入考生
export function exportExaminee(query) {
  return request({
    url: '/exam/examinee/export',
    method: 'get',
    params: query
  })
}

export function getQualityAnalysis(id) {
  return request({
    url: '/analysis/qualityAnalysis/' + id,
    method: 'get',
  })
}

// 获取课程列表
export function getCourseList() {
  return request({
    url: '/org/course/list',
    method: 'get',
  })
}

// 获取考试名称
export function getExaminationList(params) {
  return request({
    url: '/exam/examination/list',
    method: 'get',
    params: params
  })
}


//导出
export function exportExam() {
  return request({
    url: '/exam/session/exportAnalysis/4e0ee1d10c80473aa89aeb9223a50c8a',
    method: 'get',
  })
}

// 获取试题分析
export function getExamAnalysis(id) {
  return request({
    url: '/exam/session/questionAnalysis/' + id,
    method: 'get',
  })
}

